package com.tencent.iov.cowin.befsale.clue.repository.cus;

import com.github.pagehelper.Page;
import com.tencent.iov.cowin.befsale.clue.controller.cus.vo.request.ClueIntentionGradeDataRequest;
import com.tencent.iov.cowin.befsale.clue.domain.cus.po.OemCustomerFollowPlan;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @Describe: 总部计划跟进线索表_Manager接口层
 * @author: xiamu
 * @created: 2021-12-21 18:37:30
 * @version: 1.0
 */
public interface OemCustomerFollowPlanManager {

    /**
     * 单条数据插入OemCustomerFollowPlan
     *
     * @param request
     * @return 插入的条数
     */
    int insert(OemCustomerFollowPlan request);

    /**
     * 批量插入OemCustomerFollowPlan
     *
     * @param requests
     * @return 批量插入的条数
     */
    int insertBatch(List<OemCustomerFollowPlan> requests);

    /**
     * 通过ID获取详细信息
     *
     * @param: id
     * @return: OemCustomerFollowPlan对象
     */
    OemCustomerFollowPlan getDetailById(Long id);

    /**
     * 单条OemCustomerFollowPlan更新
     *
     * @param request
     * @return 更新的条数
     */
    int update(OemCustomerFollowPlan request);

    /**
     * 通过ID删除数据
     *
     * @param id
     * @return 删除的条数
     */
    int delete(Integer id);

    /**
     * 根据条件查询对象list列表
     *
     * @param request
     * @return 查询结果
     */
    List<OemCustomerFollowPlan> getListByParam(OemCustomerFollowPlan request);

    /**
     * 根据条件查询对象page记录
     *
     * @param request
     * @return
     */
    Page<OemCustomerFollowPlan> getPageByParam(OemCustomerFollowPlan request, RowBounds rowBounds);

    /**
     * 根据条件查询单个对象
     *
     * @param request
     * @return 查询结果
     */
    OemCustomerFollowPlan getOneByParam(OemCustomerFollowPlan request);

    /**
     * 根据条件查询计划表统计数量
     * @param clueIntentionGradeDataRequest
     * @return
     */
    Integer getFollowUpData(ClueIntentionGradeDataRequest clueIntentionGradeDataRequest);
}